package com.onlineMIS.ORM.entity.headQ.finance;

import java.util.Map;

import com.onlineMIS.common.Common_util;

public class ExpenseHqVO {
	
private int id;
	
	private int entityId;
		
	private int feeType;
	
	private String feeTypes;
	
	private String financeCategoryName;
	
	private double amount;

	private String comment;
	
	private String userName;
	
	private int status;
	
	private String statusS;
	
	private String expenseDate;
	
	private String createDate;
	
	private String lastUpdateDate;
	
	private String belongTo;

	public ExpenseHqVO(ExpenseHq expenseHq,Map<Integer, ExpenseHqType> map) {
		super();
		this.id = expenseHq.getId();
		this.entityId = expenseHq.getEntityId();
		this.feeType = expenseHq.getType();
		this.feeTypes = expenseHq.getTypeHQS();
		if (expenseHq.getFinanceCategory() != null) {
			this.financeCategoryName =expenseHq.getFinanceCategory().getItemName();
			this.belongTo = FinanceCategory.getBelongTo2Map().get(expenseHq.getFinanceCategory().getBelongTo2());
		}
		this.amount = expenseHq.getAmount();
		this.comment = expenseHq.getComment();
		this.userName = expenseHq.getUser().getUser_name();
		this.status = expenseHq.getStatus();
		this.statusS = expenseHq.getStatusMap().get(expenseHq.getStatus());
		this.expenseDate = Common_util.dateFormat.format(expenseHq.getExpenseDate());
		this.createDate = Common_util.dateFormat_f.format(expenseHq.getCreateDate());
		this.lastUpdateDate = Common_util.dateFormat_f.format(expenseHq.getLastUpdateDate());
	}


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getFeeType() {
		return feeType;
	}
	public void setFeeType(int feeType) {
		this.feeType = feeType;
	}
	public String getFinanceCategoryName() {
		return financeCategoryName;
	}
	public void setFinanceCategoryName(String financeCategoryName) {
		this.financeCategoryName = financeCategoryName;
	}
	public double getAmount() {
		return amount;
	}
	public void setAmount(double amount) {
		this.amount = amount;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getStatusS() {
		return statusS;
	}
	public void setStatusS(String statusS) {
		this.statusS = statusS;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getLastUpdateDate() {
		return lastUpdateDate;
	}

	public void setLastUpdateDate(String lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	public int getEntityId() {
		return entityId;
	}

	public void setEntityId(int entityId) {
		this.entityId = entityId;
	}

	public String getExpenseDate() {
		return expenseDate;
	}

	public void setExpenseDate(String expenseDate) {
		this.expenseDate = expenseDate;
	}

	public ExpenseHqVO() {
	}


	public String getFeeTypes() {
		return feeTypes;
	}


	public void setFeeTypes(String feeTypes) {
		this.feeTypes = feeTypes;
	}


	public String getBelongTo() {
		return belongTo;
	}


	public void setBelongTo(String belongTo) {
		this.belongTo = belongTo;
	}
	
	

}
